package com.hejia.alauda.entity;

import java.math.BigDecimal;

/**
 * 打款红包
 * 
 * @author hyr
 *
 */
public class RepaymentBonus {

	private Long repaymentOrderId; // 打款订单ID
	private String code; // 红包编码
	private Integer bonusOrderCount; // 红包数量
	private BigDecimal amount; // 红包金额

	public Long getRepaymentOrderId() {
		return repaymentOrderId;
	}

	public void setRepaymentOrderId(Long repaymentOrderId) {
		this.repaymentOrderId = repaymentOrderId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getBonusOrderCount() {
		return bonusOrderCount;
	}

	public void setBonusOrderCount(Integer bonusOrderCount) {
		this.bonusOrderCount = bonusOrderCount;
	}

	public BigDecimal getAmount() {
		if (amount == null) {
			amount = BigDecimal.ZERO;
		}
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

}
